package com.djzhu.algorithm.sort;

/**
 * Descriptions...
 *
 * @author DJ.Zhu
 */
public abstract class AbstractSort {

    abstract void sort(Integer[] array);

    protected void swap(Integer[] array, Integer i, Integer j){
        Integer tmp = array[i];
        array[i] = array[j];
        array[j] = tmp;
    }

    protected void print(Integer[] arr){
        for (Integer i : arr){
            System.out.print(i + " ");
        }
        System.out.println();
    }

}
